package dev.langchain4j.example.tools;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Component;

@Component
public class BookingTools {

    //private final BookingService bookingService;
    //
    //public BookingTools(BookingService bookingService) {
    //    this.bookingService = bookingService;
    //}
    //
    //@Tool(value = "获取预订详情。需要提供预订号、客户姓名和姓氏。返回预订的详细信息，包括预订状态、时间等。")
    //public Booking getBookingDetails(String bookingNumber, String customerName, String customerSurname) {
    //    return bookingService.getBookingDetails(bookingNumber, customerName, customerSurname);
    //}
    //
    //@Tool(value = "取消预订。需要提供预订号、客户姓名和姓氏。成功取消后，系统会发送确认通知。")
    //public void cancelBooking(String bookingNumber, String customerName, String customerSurname) {
    //    bookingService.cancelBooking(bookingNumber, customerName, customerSurname);
    //}
    //
    //@Tool(value = "创建新预订。需要提供客户姓名和姓氏。系统会自动生成预订号并返回预订确认信息。")
    //public void bookBooking(String customerName, String customerSurname) {
    //    bookingService.doneBooking(customerName, customerSurname);
    //}

    //@Tool(value = "根据比赛id,查询比赛结果")
    //public String queryMatchResultByMatchId(
    //        @P("The matchId for the football match")
    //        String matchId
    //) {
    //
    //    if (matchId.equals("1952")) {
    //        System.out.println("用户查询了比赛id为【1952】的比赛结果");
    //
    //        return "休斯顿迪纳摩VS西雅图音速, 休斯顿迪纳摩7:0大幅领先西雅图音速";
    //
    //    } else {
    //        System.out.println("用户查询了比赛id非【1952】的比赛结果");
    //
    //        return "比赛还未结束";
    //    }
    //}


}